﻿using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Core.Entities
{
    /// <summary>
    /// 商户应用短信模板
    /// </summary>
    [Table("Merchant_AppSmsTemplate")] //IMerchantAppSmsTemplateRepository
    [Serializable]
    public class MerchantAppSmsTemplate : Entity<long>
    {
        /// <summary>
        /// 应用Id
        /// </summary>
        [Required]
        [StringLength(maximumLength: 32)]
        public string AppId { get; set; }

        /// <summary>
        /// 短信类型(1=验证,2=验证失败,101=付款,102,付款失败)
        /// </summary>
        public int SmsType { get; set; }

        /// <summary>
        /// 模板或模板Id
        /// </summary>
        [Required]
        [StringLength(maximumLength: 255)]
        public string SmsTemplate { get; set; }
    }
}
